package com.lmhy.base.commons;

import java.io.Serializable;
import java.util.List;

/**
 * Desc: 基类
 * User: 罗铭豪野
 * Time: 2014-12-02 15:57
 */
public interface IOperations<T extends Serializable> {

    T findOne(final long id);

    List<T> findAll();

    void create(final T entity);

    T update(final T entity);

    void delete(final T entity);

    void deleteById(final long entityId);

    List<T> findByList(final String where,Object... objects);


}